package com.wksc.workflow.dao;

import com.wksc.workflow.model.Users;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Description:用户数据操作类
 * Author: Zero
 * CreateTime: 2013-12-23 14:18
 */
@Repository
public class UsersDao extends BaseHibernateDao<Users, String> {

    public List<Users> findUsers() {
        L.info("查询所有用户信息");
        String sql = "SELECT * FROM ACT_ID_USER t";
        return list(sql, null, null);
    }

    public Users login(String userName) {
        L.info("用户登录");
        return (Users) get(Users.class, userName);
    }

}
